﻿#ifndef PERSONFATBUILDER_H
#define PERSONFATBUILDER_H

#include <QPainter>
#include "PersonBuilder.h"

class PersonFatBuilder : public PersonBuilder
{
public:
    PersonFatBuilder(QPainter* painter, int x=0, int y=0);
    virtual void BuildHead() {
        m_painter->drawEllipse(QRect(50+m_x, 20+m_y, 30, 30));
    }
    virtual void BuildBody() {
        m_painter->drawEllipse(QRect(45+m_x, 50+m_y, 40, 50));
    }
    virtual void BuildArmLeft() {
        m_painter->drawLine(50+m_x, 50+m_y, 30+m_x, 100+m_y);
    }
    virtual void BuildArmRight() {
        m_painter->drawLine(80+m_x, 50+m_y, 100+m_x, 100+m_y);
    }
    virtual void BuildLegLeft() {
        m_painter->drawLine(60+m_x, 100+m_y, 45+m_x, 150+m_y);
    }
    virtual void BuildLegRight() {
        m_painter->drawLine(70+m_x, 100+m_y, 85+m_x, 150+m_y);
    }
};

#endif // PERSONFATBUILDER_H
